performance.polyfill.js ➔ now   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 2
1
(function(){
2
      var nowOffset = Date.now();
3
      
4
        global.performance = { };
5
6
        global.performance.now = function now(){
7
        return Date.now() - nowOffset;
8
      }
9
})();